<%--
  Created by IntelliJ IDEA.
  User: 12296
  Date: 2022/3/15
  Time: 16:37
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>添加菜品</title>
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css">
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>

<style>
    th,td{
        text-align: center;
        font-size:  large;
    }
    input{
        border-radius: 5px;
    }
</style>

</head>

<body>
<div class="container row=10">
    <form action="<%=request.getContextPath()%>/shopMenuAdd" method="post">
        <table class="table table-striped table-hover">

            <tbody>

            <tr>
                <th colspan="2"><h3>菜品信息</h3></th>
                <th></th>
            </tr>

            <tr>
                <td>菜品名称：</td>
                <td><input type="text" name="newName"></td>
            </tr>
            <tr>
                <td>菜品单价（份）：</td>
                <td><input type="text" name="newPrice"></td>
            </tr>
            <tr>
                <td>联系电话：</td>
                <td><input type="text" name="newPhone"></td>
            </tr>
            <tr>
                <td>上传图片：</td>
                <td>
                    <input type="file" name="file"  id="fileField" onchange="document.getElementById('textfield').value=document.getElementById('fileField').value">

                </td>
            </tr>

            </tbody>

        </table>
        <center> <input type="submit" value="提交" class="btn btn-success"></center>
    </form>
</div>
</body>
</html>
